//
//  NotifyingClass.m
//  TextApp
//
//  Created by Tim Isted on 08/09/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"
#import "MathUtilities.h"
#import "WonderfulNumber.h"

@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	NSArray *monthsArray = [NSArray arrayWithObjects:@"January", @"February", 
									 @"March", @"April", @"May", @"June",
									 @"July", @"August", @"September", 
									 @"October", @"November", @"December", nil];
	
	for( NSString *eachMonth in [monthsArray reverseObjectEnumerator] )
	{
		[textView insertText:[NSString stringWithFormat:@"%@ is a nice month\n", eachMonth]];
	}
}

- (float)generateValue:(float *)originalValue
{
	float radius = [textField floatValue];
	*originalValue = radius;
	float circumference = [MathUtilities circumferenceFromRadius:radius];
	return circumference;
}

@end